import request from "@/config/request";
import type {PointRecord} from "@/types/point";

enum API {
    root = "/member/point"
}

/**
 * 用户积分 API
 */
export const UserPointApi = {

    // 积分记录分页
    getPointRecordPage: async (): Promise<BaseResult<PageResult<PointRecord>>> => {
        return request.get<BaseResult<PageResult<PointRecord>>>({
            url: `${API.root}/record/page`,
        })
    }

}
